package com.qianyitian.hope2.spider.lego;

public class AmazonItem {
    private static double taxrate = 0.12;

    String name;
    String brief;
    String legoCode;
    String productCode;
    double originPrice;
    double notifyPrice;
    double currentPrice;
    double tax;

    public AmazonItem() {
    }

    public double getCurrentPrice() {
        return currentPrice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCurrentPrice(double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getLegoCode() {
        return legoCode;
    }

    public void setLegoCode(String legoCode) {
        this.legoCode = legoCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public double getOriginPrice() {
        return originPrice;
    }

    public void setOriginPrice(double originPrice) {
        this.originPrice = originPrice;
    }

    public double getNotifyPrice() {
        return notifyPrice;
    }

    public void setNotifyPrice(double notifyPrice) {
        this.notifyPrice = notifyPrice;
    }

    public double getTax() {
        return currentPrice * taxrate;
    }

    public void setTax(double tax) {
        this.tax = tax;
    }

    @Override
    public String toString() {
        return "AmazonItem{" +
                "brief='" + brief + '\'' +
                ", legoCode='" + legoCode + '\'' +
                ", productCode='" + productCode + '\'' +
                ", originPrice='" + originPrice + '\'' +
                ", notifyPrice='" + notifyPrice + '\'' +
                ", tax='" + tax + '\'' +
                '}';
    }
}
